package com.tianzehua.decorator;



/**
 * 调用component 的客户端
 * @author tianzehua
 * @date 2019/03/20
 */
public class Client {


    public static void main(String[] args){
        Component component = new ConcreteDecorator2(new ConcreteDecorator1(new ConcreteComponent()));

        component.doSomething();

    }
}
